import 'package:boss/ui/page/tableManagement/page/sortTable/provider/sort_table_provider.dart';
import 'package:boss/ui/page/tableManagement/page/sortTable/widget/sort_table_browser.dart';
import 'package:boss/ui/widget/center_title_app_bar.dart';
import 'package:flutter/material.dart';
import 'package:hi_common/hi_common.dart';
import 'package:provider/provider.dart';
import 'package:router/annotation.dart';

@RouterConfig(SortTablePage.pageName)
class SortTablePage extends StatefulWidget {
  static const pageName = '/sortTablePage';

  @override
  _SortTablePageState createState() => _SortTablePageState('桌台排序');
}

class _SortTablePageState extends BaseState<SortTablePage> {
  _SortTablePageState(String pageName) : super(pageName);

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (context) => SortTableProvider(),
      child: Scaffold(
        appBar: CenterTitleAppBar(title: '桌台排序'),
        body: SortTableBrowser(),
      ),
    );
  }
}
